import request from '@/utils/request'

// 查询店内活动列表
export function listSlActivitys(query) {
  return request({
    url: '/projects/SlActivitys/list',
    method: 'get',
    params: query
  })
}

// 查询店内活动详细
export function getSlActivitys(id) {
  return request({
    url: '/projects/SlActivitys/' + id,
    method: 'get'
  })
}

// 新增店内活动
export function addSlActivitys(data) {
  return request({
    url: '/projects/SlActivitys',
    method: 'post',
    data: data
  })
}

// 修改店内活动
export function updateSlActivitys(data) {
  return request({
    url: '/projects/SlActivitys',
    method: 'put',
    data: data
  })
}

// 删除店内活动
export function delSlActivitys(id) {
  return request({
    url: '/projects/SlActivitys/' + id,
    method: 'delete'
  })
}
